package cate.game.role.status.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBRole;
import cate.game.role.Role;
import cate.game.role.status.RoleStatus;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "主角状态数据の返回")
public class StatusResp implements MsgOutput {
    @NoteField(value = "主角状态数据")
    public RoleStatus status;

    public StatusResp(){

    }

    public StatusResp(Role role){
        this.status = role.getStatus();
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBRole.STATUS_RESP;
    }
}
